package com.sjy.mvvmdemo.main

import androidx.databinding.ObservableField

/**
 * ObservableField实现数据双向绑定
 */
class Person(name: String = "nullName", age: Int = 0) {
    var name: ObservableField<String> = ObservableField()
    var age: ObservableField<Int> = ObservableField()

    init {
        this.name.set(name)
        this.age.set(age)
    }

}